package com.woniuxy.uumsweb.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * finance-gateway:服务名称
 * uums-server:网关中的路径断言
 */
@FeignClient(name = "finance-gateway",path = "uums-server")
public interface LoginFeign {

    /**
     * url=http://${name}/${path}/${postMapping}/
     * http://finance-gateway/uums-server/login
     * @param username
     * @param password
     * @return
     */
    @PostMapping("/login")
    String login(@RequestParam("username") String username,@RequestParam("password") String password);
}
